﻿using Volo.Abp.Application;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;

namespace LINGYUN.Abp.IdentityServer;

[DependsOn(
    typeof(AbpIdentityServerApplicationContractsModule),
    typeof(AbpIdentityServerDomainModule),
    typeof(AbpDddApplicationModule),
    typeof(AbpAutoMapperModule)
    )]
public class AbpIdentityServerApplicationModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        Configure<AbpAutoMapperOptions>(options =>
        {
            options.Configurators.Add(ctx =>
            {
                ctx.MapperConfiguration.AddProfile<AbpIdentityServerAutoMapperProfile>();
            });
        });
    }
}
